package triBasic;

import java.util.*;

public class TagList {

	int pos;
	Vector<String> path;
	
	public TagList(Vector<String> list) {
		path = list;
		pos = 0;
	}
	
	public void resetPos() {
		pos = 0;
	}
	
	public String nextTag() {
		if (pos >= path.size())
			return null;
		return path.elementAt(pos++);
	}
}
